package com.thh.shirodemo.controller;

import com.thh.shirodemo.bean.User;
import com.thh.shirodemo.service.SeckillService;
import com.thh.shirodemo.util.RedisUtil;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author AdrianHHT
 * @create 2022-07-31-22:34
 */
@Controller
public class TestController {
    @Autowired
    RedisUtil redisUtil;

    @Autowired
    SeckillService seckillService;

    @ResponseBody
    @RequestMapping("/doSeckillNowT")
    public String sckillNow(){
        //获取当前对象
        String secKillMsg = seckillService.doSecKillT2();
        return secKillMsg;
    }

}
